From 926f15df85d90ae97276b21e67dcb1a10be50e03 Mon Sep 17 00:00:00 2001 From: robertl Date: Sun, 26 Apr 2009 02:36:18 +0000 Subject: [PATCH] Add support for Sony GPS-CS3KA files. --- nmea.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nmea.c b/nmea.c index abd81700e..cbc81bd0b 100644 --- a/nmea.c +++ b/nmea.c @@ -992,11 +992,21 @@ nmea_read(void) /* special hack for Sony GPS-CS1 files: they are fully (?) nmea compatible, but come with a header line like "@Sonygps/ver1.0/wgs-84". */ + /* The Sony GPS-CS3KA extends that line even further + so we now look for the second field to be / + delimited. + @Sonygps/ver1.0/wgs-84/gps-cs3.0 + */ /* Check the GPS datum */ cx = strchr(&ibuf[12], '/'); if (cx != NULL) { + char *edatum; sdatum = cx + 1; + edatum = strchr(sdatum, '/'); + if (edatum) { + *edatum = 0; + } datum = GPS_Lookup_Datum_Index(sdatum); if (datum < 0) fatal(MYNAME "/SonyGPS: Unsupported datum \"%s\" in source data!\n", sdatum); -- 2.30.2